<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务列表</title>

    <!-- Tailwind CSS via CDN -->
    <script src="https://cdn.tailwindcss.com"></script>

    <!-- Font Awesome via Cloudflare CDN -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />

    <style>
        /* Optional: Add custom base styles or component overrides here if needed */
        body {
            font-family: 'Inter', sans-serif; /* Example using a common sans-serif font */
        }
        /* Add focus ring styles for better accessibility */
        a:focus, button:focus {
            outline: 2px solid transparent;
            outline-offset: 2px;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* Tailwind's blue-500 focus ring */
        }
        /* Style for table header */
        th {
            @apply px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider bg-gray-50 border-b border-gray-200;
        }
        /* Style for table data cells */
        td {
            @apply px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-gray-200;
        }
        /* Style for status badges */
        .status-badge {
            @apply inline-block px-2.5 py-0.5 rounded-full text-xs font-semibold leading-tight;
        }
        .status-pending {
            @apply bg-yellow-100 text-yellow-800;
        }
        .status-inprogress {
            @apply bg-blue-100 text-blue-800;
        }
        .status-completed {
            @apply bg-green-100 text-green-800;
        }
        .status-cancelled {
            @apply bg-red-100 text-red-800;
        }
    </style>
    <!-- Consider adding a font like Inter from Google Fonts for better typography -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body class="bg-gradient-to-br from-gray-100 to-gray-200 min-h-screen flex flex-col">

    <!-- Header -->
    <header class="bg-white shadow-sm">
        <nav class="container mx-auto px-4 py-4 flex justify-between items-center">
            <div class="text-xl font-bold text-gray-800">
                <i class="fas fa-clipboard-list mr-2 text-blue-600"></i>任务管理器
            </div>
            <div>
                <!-- Navigation links can go here -->
                <a href="#" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium">查看任务</a>
                <a href="index.html" class="text-gray-600 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium">创建任务</a>
                <a href="#" class="text-blue-600 hover:bg-blue-100 px-3 py-2 rounded-md text-sm font-medium border border-blue-600">登录</a>
            </div>
        </nav>
    </header>

    <!-- Main Content Area -->
    <main class="flex-grow container mx-auto px-4 py-8 md:py-12">
        <div class="max-w-4xl mx-auto bg-white p-6 md:p-8 rounded-xl shadow-lg">

            <h1 class="text-2xl md:text-3xl font-bold text-center text-gray-800 mb-6 md:mb-8">
                <i class="fas fa-list-check mr-2 text-blue-500"></i>任务列表
            </h1>

            <!-- Optional: Add filters or search bar here -->
            <div class="mb-4 flex justify-between items-center">
                 <div class="relative w-full max-w-xs">
                    <input type="text" placeholder="搜索任务标题..." class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm">
                    <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                        <i class="fas fa-search text-gray-400"></i>
                    </div>
                </div>
                <a href="index.html" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
                    <i class="fas fa-plus mr-2"></i>创建新任务
                </a>
            </div>

            <!-- Task Table Container (for horizontal scrolling on small screens) -->
            <div class="overflow-x-auto shadow border-b border-gray-200 rounded-lg">
                <table class="min-w-full divide-y divide-gray-200">
                    <thead class="bg-gray-50">
                        <tr>
                            <th scope="col">ID</th>
                            <th scope="col">标题</th>
                            <th scope="col">状态</th>
                            <th scope="col">创建时间</th>
                            <th scope="col">操作</th>
                        </tr>
                    </thead>
                    <tbody class="bg-white divide-y divide-gray-200">
                        <!-- Sample Task Row 1 -->
                        <tr>
                            <td class="font-mono text-xs text-gray-500">T-001</td>
                            <td>完成项目初步设计</td>
                            <td>
                                <span class="status-badge status-inprogress">进行中</span>
                            </td>
                            <td>2023-10-26</td>
                            <td>
                                <a href="#" class="text-blue-600 hover:text-blue-900 mr-3 text-sm font-medium">查看</a>
                                <a href="#" class="text-yellow-600 hover:text-yellow-900 mr-3 text-sm font-medium">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 text-sm font-medium">删除</a>
                            </td>
                        </tr>
                        <!-- Sample Task Row 2 -->
                        <tr>
                            <td class="font-mono text-xs text-gray-500">T-002</td>
                            <td>准备周五的演示文稿</td>
                            <td>
                                <span class="status-badge status-pending">待处理</span>
                            </td>
                            <td>2023-10-27</td>
                             <td>
                                <a href="#" class="text-blue-600 hover:text-blue-900 mr-3 text-sm font-medium">查看</a>
                                <a href="#" class="text-yellow-600 hover:text-yellow-900 mr-3 text-sm font-medium">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 text-sm font-medium">删除</a>
                            </td>
                        </tr>
                        <!-- Sample Task Row 3 -->
                        <tr>
                            <td class="font-mono text-xs text-gray-500">T-003</td>
                            <td>修复登录页面的 Bug</td>
                            <td>
                                <span class="status-badge status-completed">已完成</span>
                            </td>
                            <td>2023-10-25</td>
                             <td>
                                <a href="#" class="text-blue-600 hover:text-blue-900 mr-3 text-sm font-medium">查看</a>
                                <a href="#" class="text-yellow-600 hover:text-yellow-900 mr-3 text-sm font-medium">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 text-sm font-medium">删除</a>
                            </td>
                        </tr>
                         <!-- Sample Task Row 4 -->
                        <tr>
                            <td class="font-mono text-xs text-gray-500">T-004</td>
                            <td>市场调研报告</td>
                            <td>
                                <span class="status-badge status-cancelled">已取消</span>
                            </td>
                            <td>2023-10-20</td>
                             <td>
                                <a href="#" class="text-blue-600 hover:text-blue-900 mr-3 text-sm font-medium">查看</a>
                                <a href="#" class="text-yellow-600 hover:text-yellow-900 mr-3 text-sm font-medium">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 text-sm font-medium">删除</a>
                            </td>
                        </tr>
                        <!-- Add more sample rows as needed -->
                    </tbody>
                </table>
            </div>

            <!-- Optional: Pagination Controls -->
            <div class="mt-6 flex items-center justify-between border-t border-gray-200 pt-4">
                <div class="text-sm text-gray-600">
                    显示 <span class="font-medium">1</span> 到 <span class="font-medium">4</span> 项，共 <span class="font-medium">15</span> 项结果
                </div>
                <div class="flex space-x-1">
                    <a href="#" class="inline-flex items-center px-3 py-1 border border-gray-300 text-sm font-medium rounded-md text-gray-500 bg-white hover:bg-gray-50">
                        上一页
                    </a>
                    <a href="#" class="inline-flex items-center px-3 py-1 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
                        下一页
                    </a>
                </div>
            </div>

        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-white mt-12 py-4 border-t border-gray-200">
        <div class="container mx-auto px-4 text-center text-gray-500 text-sm">
            &copy; 2023 任务管理系统. 保留所有权利.
        </div>
    </footer>

    <!-- No specific JS needed for this static prototype, but you could add interactions later -->
    <script>
        // JavaScript for potential future interactions (e.g., filtering, sorting, real pagination)
        console.log("任务列表页面加载完成。");
    </script>

</body>
</html>
